#include <fermat/event/timer_task.h>


namespace fermat {
namespace event {
	
fermat::atomic_int64 TimerTask::_gTimerNum;

void TimerTask::restart(const fermat::Timestamp &now)
{
  if (_repeat) {
    _expiration = now + _interval;
  } else {
    _expiration = fermat::Timestamp();
  }
}
}

}
